<%= form_for(@user) do |f| %>
    <%= render 'shared/error_messages', :object => f.object, :model_name => t("user.model_name") %>
    <div class="field">
      <%= f.label(:title, t('user.title')) %>
      <br/>
      <%= f.select(:title, [[], [t('user.ms'), t('user.ms')], [t('user.mr'), t('user.mr')], [t('user.company'), t('user.company')]]) %>
    </div>
    <div class="field">
      <%= f.label(:firstname, t("user.firstname")) %>
      <br/>
      <%= f.text_field :firstname %>
    </div>
    <div class="field">
      <%= f.label(:lastname, t('user.lastname')) %>
      <br/>
      <%= f.text_field :lastname %>
    </div>
    <div class="field">
      <%= f.label(:street, t('user.street')) %>
      <br/>
      <%= f.text_field :street %>
    </div>
    <div class="field">
      <%= f.label(:zip, t('user.zip')) %>
      <br/>
      <%= f.text_field :zip %>
    </div>
    <div class="field">
      <%= f.label(:city, t('user.city')) %>
      <br/>
      <%= f.text_field :city %>
    </div>
    <div class="field">
      <%= f.label(:email, t('user.email')) %>
      <br/>
      <%= f.text_field :email %>
    </div>
    <div class="field">
      <%= f.label(:password, t('user.password')) %>
      <br/>
      <%= f.password_field :password %>
    </div>
    <div class="field">
      <%= f.label(:password_confirmation, t('user.password_confirmation')) %>
      <br/>
      <%= f.password_field :password_confirmation %>
    </div>
    <% if (signed_in? && current_user.admin?) %>
        <div class="field">
          <%= f.label :admin %>
          <br/>
          <%= f.check_box :admin %>
        </div>
    <% end %>
    <div class="actions">
      <%= f.submit t 'helpers.basic.save' %>
    </div>
<% end %>
